import service from '@/utils/request'
// eslint-disable-next-line no-unused-vars
const { httpPostForm, httpPost, httpGet } = service
//设备采购合同签订查询
const request = {
    //分页查询合同台账
    queryStandingBook (params) {
        return httpPost({
            url: '/subcontract/equipmentWasteDisposalSign/queryStandingBook',
            params: params,
        })
    },
    //新增(更新)基本信息
    createInfo (params) {
        return httpPost({
            url: '/subcontract/equipmentWasteDisposalSign/createInfo',
            params: params,
        })
    },
    //基础信息查询
    getInfo (id) {
        return httpGet({
            url: '/subcontract/equipmentWasteDisposalSign/getInfo',
            params: {
                billId: id,
            },
            headers: {
                'Content-Type': 'application/x-www-form-urlencoded'
            }
        })
    },
    //删除基本信息
    deleteInfo (id) {
        return httpGet({
            url: '/subcontract/equipmentWasteDisposalSign/deleteInfo',
            params: {
                billId: id,
            },
            headers: {
                'Content-Type': 'application/x-www-form-urlencoded'
            }
        })
    },
    //新增(修改)主体信息
    createMainstay (params) {
        return httpPost({
            url: '/subcontract/equipmentWasteDisposalSign/createMainstay',
            params: params,
        })
    },
    //主体信息查询
    getMainstay (id) {
        return httpGet({
            url: '/subcontract/equipmentWasteDisposalSign/getMainstay',
            params: {
                billId: id,
            },
            headers: {
                'Content-Type': 'application/x-www-form-urlencoded'
            }
        })
    },
    //新增(修改)保证金
    createBond (params) {
        return httpPost({
            url: '/subcontract/equipmentWasteDisposalSign/createBond',
            params: params,
        })
    },
    //保证金查询
    getBond (params) {
        return httpGet({
            url: '/subcontract/equipmentWasteDisposalSign/getBond',
            params
        })
    },
    //删除保证金
    deleteBond (billIds) {
        return httpPost({
            url: '/subcontract/equipmentWasteDisposalSign/deleteBond',
            params: billIds
        })
    },
    //合同清单查询
    findByContractList (id) {
        return httpGet({
            url: `/contract/ctSubContractDrawUp/findByContractList/${id}`,
            headers: {
                'Content-Type': 'application/x-www-form-urlencoded'
            }
        })
    },
    //甲供信息查询
    findByAlist (id) {
        return httpGet({
            url: `/contract/ctSubContractDrawUp/findByAlist/${id}`,
            headers: {
                'Content-Type': 'application/x-www-form-urlencoded'
            }
        })
    },
    //保证金查询
    findById (id) {
        return httpGet({
            url: `/contract/ctSubContractDrawUp/findById/${id}`,
            headers: {
                'Content-Type': 'application/x-www-form-urlencoded'
            }
        })
    },
    //合同条款查询
    findByClause (id) {
        return httpGet({
            url: `/contract/ctSubContractDrawUp/findByClause/${id}`,
            headers: {
                'Content-Type': 'application/x-www-form-urlencoded'
            }
        })
    },
    //附件信息查询
    findByEnclosure (id) {
        return httpGet({
            url: `/contract/ctSubContractDrawUp/findByEnclosure/${id}`,
            headers: {
                'Content-Type': 'application/x-www-form-urlencoded'
            }
        })
    },
    //正式文件查询
    findByFormalContractDocuments (id) {
        return httpGet({
            url: `/contract/ctSubContractDrawUp/findByFormalContractDocuments/${id}`,
            headers: {
                'Content-Type': 'application/x-www-form-urlencoded'
            }
        })
    },
    //审核历史查询
    findByAuditHistory (id) {
        return httpGet({
            url: `/contract/ctSubContractDrawUp/findByAuditHistory/${id}`,
            headers: {
                'Content-Type': 'application/x-www-form-urlencoded'
            }
        })
    },
    //签订记录查询
    findBySigningRecord (params) {
        return httpGet({
            url: '/subcontract/equipmentWasteDisposalSign/getSignRecord',
            params
        })
    },
    //变更记录查询
    findByAlter (id) {
        return httpGet({
            url: `/contract/ctSubContractDrawUp/findByAlter/${id}`,
            headers: {
                'Content-Type': 'application/x-www-form-urlencoded'
            }
        })
    },
    //结算台账查询
    findBySettlementAccount (id) {
        return httpGet({
            url: `/contract/ctSubContractDrawUp/findBySettlementAccount/${id}`,
            headers: {
                'Content-Type': 'application/x-www-form-urlencoded'
            }
        })
    },
    //合同终止查询
    findByTerminationRecord (id) {
        return httpGet({
            url: `/contract/ctSubContractDrawUp/findByTerminationRecord/${id}`,
            headers: {
                'Content-Type': 'application/x-www-form-urlencoded'
            }
        })
    },
    //保存清单
    saveList (params) {
        return httpPost({
            url: '/subcontract/equipmentWasteDisposalSign/saveList',
            params
        })
    },
    //查询清单
    getContractList (params) {
        return httpGet({
            url: '/subcontract/equipmentWasteDisposalSign/getList',
            params
        })
    },
    //模糊查询清单
    searchContractList (params) {
        return httpGet({
            url: '/subcontract/equipmentWasteDisposalSign/getListByKey',
            params
        })
    },
    //加载所有清单
    contractListAll (params) {
        return httpGet({
            url: '/subcontract/equipmentWasteDisposalSign/getALLList',
            params
        })
    },
    //查询甲供清单物资清单
    getSupplyMaterialList (params) {
        return httpGet({
            url: '/subcontract/equipmentWasteDisposalSign/getSupplyMaterialList',
            params
        })
    },
    //新增甲供清单物资清单
    createSupplyMaterialList (params) {
        return httpPost({
            url: '/subcontract/equipmentWasteDisposalSign/createSupplyMaterialList',
            params
        })
    },
    //获取甲供清单占比
    getListProportion (params) {
        return httpPost({
            url: '/subcontract/equipmentWasteDisposalSign/getListProportion',
            params
        })
    },
    //新增甲供清单设备清单
    createEquipmentList (params) {
        return httpPost({
            url: '/subcontract/equipmentWasteDisposalSign/createEquipmentList',
            params
        })
    },
    //查询甲供清单设备清单
    getEquipmentList (params) {
        return httpGet({
            url: '/subcontract/equipmentWasteDisposalSign/getEquipmentList',
            params
        })
    },
    //获取清单修改记录
    getListUpdateRecord (params) {
        return httpGet({
            url: '/subcontract/equipmentWasteDisposalSign/getListUpdateRecord',
            params
        })
    },
    //获取甲供清单设备清单修改记录
    getEquipmentListUpdateRecord (params) {
        return httpGet({
            url: '/subcontract/equipmentWasteDisposalSign/getEquipmentListUpdateRecord',
            params
        })
    },
    //获取甲供清单物资清单修改记录
    getMaterialListUpdateRecord (params) {
        return httpGet({
            url: '/subcontract/equipmentWasteDisposalSign/getMaterialListUpdateRecord',
            params
        })
    },
    //查询变更记录
    getChangeRecords (params) {
        return httpGet({
            url: '/subcontract/materialProcurementChangeApply/getChangeRecords',
            params
        })
    },
    //获取终止记录
    getStopRecord (params) {
        return httpGet({
            url: '/subcontract/materialProcurementStop/getStopRecord',
            params: params,
        })
    },
    //查询物资清单
    getMaterialList (params) {
        return httpGet({
            url: '/subcontract/equipmentWasteDisposalSign/getMaterialList',
            params
        })
    },
    //保存物资清单
    saveMaterialList (params) {
        return httpPost({
            url: '/subcontract/equipmentWasteDisposalSign/saveMaterialList',
            params
        })
    },
    //查询设备清单
    getEqList (params) {
        return httpGet({
            url: '/subcontract/equipmentWasteDisposalSign/getEqList',
            params
        })
    },
    //查询服务清单
    getServerList (params) {
        return httpGet({
            url: '/subcontract/equipmentWasteDisposalSign/getServerList',
            params
        })
    },
    //保存设备清单
    saveEqList (params) {
        return httpPost({
            url: '/subcontract/equipmentWasteDisposalSign/saveEqList',
            params
        })
    },
    //保存服务清单
    saveServerList (params) {
        return httpPost({
            url: '/subcontract/equipmentWasteDisposalSign/saveServerList',
            params
        })
    },
}

export default request
